package com.wande.dataplatform.filecollection.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * MinIO配置属性
 *
 * @author wande
 */
@Data
@Component
@ConfigurationProperties(prefix = "file-collection.minio")
public class MinioProperties {

    /**
     * MinIO服务地址
     */
    private String endpoint;

    /**
     * 访问密钥
     */
    private String accessKey;

    /**
     * 密钥
     */
    private String secretKey;

    /**
     * 存储桶名称
     */
    private String bucketName = "file-collection";

    /**
     * 结构化文件前缀
     */
    private String structuredPrefix = "structured/";

    /**
     * 非结构化文件前缀
     */
    private String unstructuredPrefix = "unstructured/";

    /**
     * 是否启用
     */
    private Boolean enabled = true;
}
